package com.GameSpace.CoreAssets;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.Button;

public class ToolBarItem extends Button{

   public ToolBarItem(Context context) { 
        super(context); 
   } 
   public ToolBarItem(Context context, AttributeSet attrs, int params) 
   { 
        super(context, attrs, params); 
   } 
   
   private int width;
   private boolean isClickable;
   private int backgroundColor;
   
   public int GetWidth()
   {
	   return width;
   }
   public void SetWidth(int width)
   {
	   this.width = width;
	   setWidth(width);
   }
   public boolean GetIsClickable()
   {
	   return this.isClickable;
   }
   public void SetIsClickable(Boolean isClickable)
   {
	   super.setClickable(isClickable);
	   this.isClickable = isClickable;
   }
   public int GetBackgroundColor()
   { 
	   return this.backgroundColor;
   }
   
   //takes an R.color value as parameter
   public void SetBackgroundColor(int color)
   {
	   super.setBackgroundResource(color);
	   this.backgroundColor = color;
   }
   
}
